<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=gb2312" />
  <meta name="robots" content="noindex, nofollow" />
  <title><%=@page_title || 'Trikr.com - an collaborate project management tool'.t%></title>
  <%= stylesheet_link_tag 'style','digg_nav_tab','modalbox' %>
  <%= javascript_include_tag "prototype","scriptaculous","append"%>
  <%= javascript_include_tag "FusionCharts" if @controller_name=="projects"%>
  <%= javascript_include_tag "authorize","modalbox","tooltip"%>
  <%= calendar_date_select_includes%>
  <link rel="shortcut icon" href="/images/favicon.ico" />
</head>
<body>

<%=render :partial=>'layouts/top_nav'%>
<div id="Header">
  <h1>
  <%if @company%>
    <%=@company.name%>
  <%elsif @cur_user.company%> 
    <%=@cur_user.company.name%>
  <%end%>
  </h1>
  <span class="dummy_nav">
  <%=link_to image_tag("nav_link.png".t,:border=>0,
             :style=>"-moz-opacity:0.4;filter:alpha(opacity=40)",
	     :onmouseover=>"this.style.MozOpacity=0.8;this.filters.alpha.opacity=80",
	     :onmouseout=>"this.style.MozOpacity=0.4;this.filters.alpha.opacity=40",:alt=>""),
	     modal_projects_path,
	     :onClick=>"Modalbox.show(this.href, {title: '" + "Projects list".t + "', width: 400}); return false;",
	     :title=>"These links are project functions, so that would be avaliable after you select a specify project.".t%>
  </span>
</div>
<!--header end-->

<div id="Wrapper">
  <table class="layout">
    <tr><td class="left">
        <div class="page_header">
        </div>
        <div id="content">
        <%= @content_for_layout %>
        </div>
      </td><td class="right">
      <div id="sidebar">
         <%=link_to "10 minutes trikr tutorial!".t,"/files/docs/10_mins_trikr_tutorial.doc",:target=>'blank'%>
         <br/>
         <br/>
         <%= render :partial => 'sidebar' %>
      </div>
      </td>
      </tr>
     </table>
</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3794989-1";
urchinTracker();
</script>

</body>
</html>
